/**
 * Created by marno on 2017/4/9
 * Function:存放一些常量
 * Desc:如：接口地址，字符串常量等
 */
import {Dimensions,Platform,StatusBar,PixelRatio} from  'react-native';

const {width, height} = Dimensions.get('window');
const  OS = Platform.OS;
const ios = (OS == 'ios');
const android = (OS == 'android');
const  isIPhoneX = (ios && height == 812 && width == 375);
const  statusBarHeight = (ios ? (isIPhoneX ? 44 : 20) : StatusBar.currentHeight);

module.exports = {
    listView_container:{
       
    },
    window_height:height,
    window_width:width,
    nav_bar_height_ios:44,
    nav_bar_height_android:50,
};

// import 引入文件  使用 ：gDevice.android
global.gDevice = {
    ios:ios,
    android:android,
    isIPhoneX:isIPhoneX,
}